﻿using Prism.Mvvm;

namespace IntoMes.Models
{
    public class StationStatusModel : BindableBase
    {
        private bool isConnected;
        /// <summary>
        /// plc连接状态
        /// </summary>
        public bool IsConnected
        {
            get => isConnected; set => SetProperty(ref isConnected, value);
        }

        private string rowHeader;
        /// <summary>
        /// 行名称
        /// </summary>
        public string RowHeader
        {
            get => rowHeader; set => SetProperty(ref rowHeader, value);
        }

        private string proModel;
        /// <summary>
        /// 生产型号
        /// </summary>
        public string ProModel
        {
            get => proModel; set => SetProperty(ref proModel, value);
        }

        


        private int proCount;
        /// <summary>
        /// 生产总量
        /// </summary>
        public int ProCount
        {
            get => proCount; set => SetProperty(ref proCount, value);
        }

        private int okCount;
        /// <summary>
        /// 合格数量
        /// </summary>
        public int OKCount
        {
            get => okCount; set => SetProperty(ref okCount, value);
        }

        private int ngCount;
        /// <summary>
        /// NG数量
        /// </summary>
        public int NGCount
        {
            get => ngCount; set => SetProperty(ref ngCount, value);
        }

        private int proBeat;
        /// <summary>
        /// 生产节拍
        /// </summary>
        public int ProBeat
        {
            get => proBeat; set => SetProperty(ref proBeat, value);
        }

        private int runTime;
        /// <summary>
        /// 设备运行时间
        /// </summary>
        public int Runtime
        {
            get => runTime; set => SetProperty(ref runTime, value);
        }
    }
}
